package com.electromagnetic.industry.software.manage.service;

import cn.hutool.core.lang.tree.Tree;
import com.electromagnetic.industry.software.common.pojo.RespPageVO;
import com.electromagnetic.industry.software.manage.pojo.req.ImportFileDirQueryVO;
import com.electromagnetic.industry.software.manage.pojo.req.ImportFileInfoVO;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

public interface ImportPrjService {

    boolean importPrj(MultipartFile file);

    ResponseEntity<InputStreamResource> download(String id, HttpServletResponse response);

    RespPageVO<ImportFileDirQueryVO> queryPrjInfo(Integer pageNum, Integer pageSize);

    RespPageVO<ImportFileInfoVO> queryImportFileInfo(String id, Integer pageNo, Integer pageSize);

    boolean removePrj(String prjId);

    Tree<String> tree(String prdId);
}
